package com.hl.controller;

import com.hl.cons.DemoConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:这个是用来测试的
 * @Author: hanle
 * @Date: 2019/05/28 09:38
 */

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController extends AbsController{

    @Resource
    private DemoConfig demoConfig;
    @RequestMapping("/props")
    public String testProps(){
        log.info(demoConfig.getFilePath());
        return demoConfig.getFilePath();
    }
}
